Evaluation of pituitary endocrine function